package cn.edu.scau.cmi.linyiling.singleton;

public class Chairman {
	private static Chairman chairman;
	private String name;

	private Chairman(String name) {
		this.name=name;
	}

	public static String getInstance(String name) {
//		Chairman chairman = null;
		if (chairman == null) {
			chairman=new Chairman(name);
			return chairman.getName();
		} else
			return chairman.getName();

	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
}
